<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>This is title</title>
    <script type="text/javascript">
        //需要判断浏览器支不支持，可以去w3c进行查看
        var source = new EventSource('http://localhost:8881/see/get_data');
        // var source = new EventSource('http://localhost:8001/platform/news/getMsgInfo');
        source.onmessage = function (event) {
            console.info(event.data);
            document.getElementById('result').innerText = event.data
        };

    </script>  
</head>

<body>
<h1>模拟股票行情</h1>
 <div>SSE Test</div>  
    <div id="result"></div>  
</body>

</html>